package icu.qx.gbs.feign;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.core.web.domain.AjaxResult;
import com.ruoyi.common.log.annotation.Log;
import com.ruoyi.common.log.enums.BusinessType;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import icu.qx.gbs.domain.PbsProcedureMaterial;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@Component
@FeignClient(name = "yyj-mes-pbs", contextId = "ProcedureMaterialService1")
public interface PbsProcedureMaterialFeign {
    /**
     * 添加
     */
    @PostMapping("/pbs/procedureMaterial")
    public R<Integer> add(@RequestBody List<PbsProcedureMaterial> pbsProcedureMaterials);

    /**
     * 删除工序物料清单
     */
    @DeleteMapping("/pbs/procedureMaterial")
    public AjaxResult remove(@RequestBody PbsProcedureMaterial pbsProcedureMaterial);
}
